package vip.specimen.system.common.connector;

import org.springframework.web.multipart.MultipartFile;
import vip.specimen.system.datasource.entity.SystemResourceEntity;
import vip.specimen.system.result.JsonResult;

import java.io.IOException;
import java.util.List;

/**
 * *@Author: 余浪人
 * *@Date：2021/3/8 14:04
 * *@Email:yulangren520@Gmail.com
 * *@QQ:1368419640
 **/
public interface SaveMethodInterface {
    void init();
    JsonResult<SystemResourceEntity> upload(MultipartFile file) throws IOException;

    void download(String fileName) throws IOException;

    boolean delete(String key);

    List getFileList();
}
